<div class="wide form">
<?php
	$catalogmodel = Catalog::model()->findAll();
	$catalogdata = CHtml::listData($catalogmodel,'cid','cataname');
	
	$speechmodel = Speech::model()->findAll();
	$speechdata = CHtml::listData($speechmodel,'sid','abbreviation');
?>
<?php $form=$this->beginWidget('CActiveForm', array(
	'action'=>Yii::app()->createUrl($this->route),
	'method'=>'get',
)); ?>

	<div class="row">
		<?php echo $form->label($model,'wid'); ?>
		<?php echo $form->textField($model,'wid'); ?>
	</div>

	<div class="row">
		<?php echo $form->label($model,'spell'); ?>
		<?php echo $form->textField($model,'spell',array('size'=>20,'maxlength'=>20)); ?>
	</div>

	<div class="row">
		<?php echo $form->label($model,'sid'); ?>
		<?php echo $form->dropDownList($model,'sid',$speechdata); ?>
	</div>
	
	<div class="row">
		<?php echo $form->label($model,'chinese'); ?>
		<?php echo $form->textField($model,'chinese',array('size'=>60,'maxlength'=>200)); ?>
	</div>

	<div class="row">
		<?php echo $form->label($model,'sentence'); ?>
		<?php echo $form->textArea($model,'sentence',array('rows'=>6, 'cols'=>50)); ?>
	</div>
	
	<div class="row">
		<?php echo $form->label($model,'cid'); ?>
		<?php echo $form->dropDownList($model,'cid',$catalogdata); ?>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton('Search'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- search-form -->